﻿#include "CameraCommon/DialogCameraSelect.h"
#include "ui_DialogCameraSelect.h"

DialogCameraSelect::DialogCameraSelect(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::DialogCameraSelect)
{
    ui->setupUi(this);
}

DialogCameraSelect::~DialogCameraSelect()
{
    delete ui;
}

void DialogCameraSelect::setCameraList(QStringList list)
{
    ui->listWidget->addItems(list);
}

QString DialogCameraSelect::cameraName()
{
    return ui->listWidget->currentItem()->text();
}
